home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmMain
- Caption = "Meta Tag Creator"
- ClientHeight = 4050
- ClientLeft = 165
- ClientTop = 735
- ClientWidth = 5625
- ClipControls = 0 'False
- Icon = "frmMain.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 4050
- ScaleWidth = 5625
- StartUpPosition = 3 'Windows Default
- Begin VB.Frame Frame1
- Caption = "Output Options"
- Height = 975
- Left = 240
- TabIndex = 11
- Top = 2760
- Width = 1935
- Begin VB.OptionButton opthtml
- Caption = "Create tags.html"
- Height = 375
- Left = 120
- TabIndex = 9
- Top = 480
- Width = 1575
- End
- Begin VB.OptionButton optclip
- Caption = "Copy to clipboard"
- Height = 255
- Left = 120
- TabIndex = 8
- Top = 240
- Value = -1 'True
- Width = 1695
- End
- End
- Begin VB.TextBox txtCopy
- Height = 285
- Left = 1680
- TabIndex = 7
- Top = 2160
- Width = 2535
- End
- Begin VB.CommandButton cmdCreate
- Caption = "&Create Code"
- Height = 495
- Left = 4080
- TabIndex = 10
- Top = 3240
- Width = 1215
- End
- Begin VB.TextBox txtAuthor
- Height = 285
- Left = 1680
- TabIndex = 5
- Top = 1680
- Width = 2535
- End
- Begin VB.TextBox txtKeyWords
- Height = 405
- Left = 1680
- MultiLine = -1 'True
- TabIndex = 3
- Top = 1080
- Width = 2535
- End
- Begin VB.TextBox txtDesc
- Height = 645
- Left = 1680
- MultiLine = -1 'True
- TabIndex = 1
- Top = 240
- Width = 2535
- End
- Begin VB.Label Label3
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Ver 1.00"
- Height = 195
- Index = 1
- Left = 4920
- TabIndex = 12
- Top = 3840
- Width = 600
- End
- Begin VB.Line Line1
- X1 = 5640
- X2 = 0
- Y1 = 0
- Y2 = 0
- End
- Begin VB.Label Label4
- AutoSize = -1 'True
- Caption = "Site C&opyright:"
- Height = 195
- Left = 240
- TabIndex = 6
- Top = 2160
- Width = 1020
- End
- Begin VB.Label Label3
- AutoSize = -1 'True
- Caption = "Site &Keywords:"
- Height = 195
- Index = 0
- Left = 240
- TabIndex = 2
- Top = 1200
- Width = 1050
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- Caption = "Site A&uthor:"
- Height = 195
- Left = 240
- TabIndex = 4
- Top = 1680
- Width = 825
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Site &Description:"
- Height = 195
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 1155
- End
- Begin VB.Menu mnuFile
- Caption = "&File"
- Begin VB.Menu mnuHtml
- Caption = "&Create html file"
- End
- Begin VB.Menu mnuClip
- Caption = "C&opy to Clipboard"
- End
- Begin VB.Menu mnuHorizontal
- Caption = "-"
- End
- Begin VB.Menu mnuexit
- Caption = "E&xit"
- End
- End
- Begin VB.Menu mnuHelp
- Caption = "&Help"
- Begin VB.Menu mnuHelp1
- Caption = "&Help"
- End
- Begin VB.Menu mnuAbout
- Caption = "&About"
- End
- End
- Attribute VB_Name = "frmMain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdCreate_Click()
- Dim html As String 'declares html varible (for the tags)
- Dim filelocation As String 'declares filelocation variable (for save path)
- Dim clipboard As String 'declares clipboard variable
- 'creates html file code
- html = "<HTML>" & vbNewLine & "<HEAD>" & vbNewLine & "<TITLE>Meta Tags</TITLE>" & vbNewLine & "</HEAD>" & vbNewLine & "<META NAME=" & Chr(34) & "description" & Chr(34) & " content=" & Chr(34) & txtDesc.Text & Chr(34) & "> " & vbNewLine & "<META NAME=" & Chr(34) & "keywords" & Chr(34) & " content=" & Chr(34) & txtKeyWords.Text & Chr(34) & ">" & vbNewLine & "<META NAME=" & Chr(34) & "author" & Chr(34) & " content=" & Chr(34) & txtAuthor.Text & Chr(34) & ">" & vbNewLine & "<META NAME=" & Chr(34) & "Copyright" & Chr(34) & " content=" & Chr(34) & txtCopy.Text & Chr(34) & ">" & vbNewLine & "<body>" & vbNewLine & "<P> Created by: Meta Tags! by Nick Bodmer - <a href=" & Chr(34) & "http://www.fulcrum.nu" & Chr(34) & ">http://www.fulcrum.nu</a> </p>" & vbNewLine & "</body>" & vbNewLine & "</html>"
- 'creates html file save path
- filelocation = App.Path & "\tags.html"
- 'creates clip board code
- clipboard = "<META NAME=" & Chr(34) & "description" & Chr(34) & " content=" & Chr(34) & txtDesc.Text & Chr(34) & "> " & vbNewLine & "<META NAME=" & Chr(34) & "keywords" & Chr(34) & " content=" & Chr(34) & txtKeyWords.Text & Chr(34) & ">" & vbNewLine & "<META NAME=" & Chr(34) & "author" & Chr(34) & " content=" & Chr(34) & txtAuthor.Text & Chr(34) & ">" & vbNewLine & "<META NAME=" & Chr(34) & "Copyright" & Chr(34) & " content=" & Chr(34) & txtCopy.Text & Chr(34) & ">"
- If optclip = True Then
- 'code for copying to clipboards
- clipboard.SetText (clipboard)
- Else
- 'code for writing html file
- Open filelocation For Output As #1
- Print #1, html
- Close #1
- End If
- End Sub
- Private Sub mnuAbout_Click()
- 'Loads the about screen
- frmAbout.Show
- frmMain.Hide
- End Sub
- Private Sub mnuexit_Click()
- End 'does this really need commenting? well, it exits program
- End Sub
- Private Sub txtAuthor_GotFocus()
- 'highlights text when textbox has focus
- txtAuthor.SelStart = 0
- txtAuthor.SelLength = Len(txtAuthor.Text)
- End Sub
- Private Sub txtCopy_GotFocus()
- 'highlights text when textbox has focus
- txtCopy.SelStart = 0
- txtCopy.SelLength = Len(txtCopy.Text)
- End Sub
- Private Sub txtDesc_GotFocus()
- 'highlights text when textbox has focus
- txtDesc.SelStart = 0
- txtDesc.SelLength = Len(txtDesc.Text)
- End Sub
- Private Sub txtKeyWords_GotFocus()
- 'highlights text when textbox has focus
- txtKeyWords.SelStart = 0
- txtKeyWords.SelLength = Len(txtKeyWords.Text)
- End Sub
-